[第二週] 位元運算 判斷奇偶數不是只能取餘數


    1001
AND    1
----------
    0001

A & 1 = 0, A的最後一位數為0, A為偶數。
A & 1 = 1, A的最後一位數為1, A為奇數。







你可能感興趣的文章

Apex Legends Season 17 優化筆記

Apex Legends Season 17 優化筆記

溫水煮青蛙:改變你的團隊氣氛

溫水煮青蛙:改變你的團隊氣氛

AppWorks School Batch #16 Front-End Class 學習筆記&心得(駐點階段三:個人專案前準備~Dive into topics)

AppWorks School Batch #16 Front-End Class 學習筆記&心得(駐點階段三:個人專案前準備~Dive into topics)






留言討論